﻿using System.Text;

namespace Wechat.Results
{
    /// <summary>
    /// 文本回复
    /// </summary>
    public class WechatTextResult : WechatResult
    {

        public WechatTextResult(string toUsername, string fromUsername)
            : base(toUsername, fromUsername)
        {

        }

        public string Content { get; set; }

        protected override void Format(StringBuilder builder)
        {
            builder.Append("<MsgType><![CDATA[text]]></MsgType>");

            builder.AppendFormat("<Content><![CDATA[{0}]]></Content>", Content);
        }
    }
}
